/*
 * @Author: zjj 
 * @Date: 2017-11-29 16:49:07 
 * @Last Modified by: zjj
 * @Last Modified time: 2017-11-29 18:04:44
 */
const io = require('socket.io').listen(3004);
io.on('connection', function(socket){
  socket.on('chatMsg', function(msg){
    io.emit('chatMsg', msg);
  });
});